package com.learn;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix="pre"//需要get，set方法
)
public class DatasourcesProperties {

	private String driverClassName;
	
	public void show(){
		System.out.println("================DatasourcesProperties==============");
		System.out.println("driverClassName ："+driverClassName);
	}

	public String getDriverClassName() {
		return driverClassName;
	}

	public void setDriverClassName(String driverClassName) {
		this.driverClassName = driverClassName;
	}
}
